#!/bin/bash

DIR=/media/disk


find "$DIR" -name "*.iso" > iso.txt
while read line; 
do 
  echo -e "$line";	
  log=`basename "$line"`.txt
  mplayer -identify -v -vo null dvd://1 -dvd-device "$line" > "$log" 2>&1  &
 done < iso.txt


sleep 20
./kill_mplayer.sh


